package la.iok.hzsvn.lewin.movie.operation.entity;

/**
 * 金融账号,记录店铺提前充值的金额
 */
public class FinancialAccount {
    private Long id;
    /**
     * 房间id
     */
    private Long roomId;
    /**
     * 余额,单位为分
     */
    private Integer balance;
    /**
     * 成功返利的月份。每个月计算一次返利规则。成功之后保存计算时间的月份，以免重复计算
     */
    private Integer returnMonth;
    /**
     * 成功返利的月份备份。在计算之前记录上次成功返利的月份，如果失败，则根据此备份值恢复原来成功的月份
     */
    private Integer returnMonthBack;
    /**
     * 数据版本
     */
    private Long version;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getRoomId() {
        return roomId;
    }

    public void setRoomId(Long roomId) {
        this.roomId = roomId;
    }

    public Integer getBalance() {
        return balance;
    }

    public void setBalance(Integer balance) {
        this.balance = balance;
    }

    public Integer getReturnMonth() {
        return returnMonth;
    }

    public void setReturnMonth(Integer returnMonth) {
        this.returnMonth = returnMonth;
    }

    public Integer getReturnMonthBack() {
        return returnMonthBack;
    }

    public void setReturnMonthBack(Integer returnMonthBack) {
        this.returnMonthBack = returnMonthBack;
    }

    public Long getVersion() {
        return version;
    }

    public void setVersion(Long version) {
        this.version = version;
    }
}
